package model

import "time"

type Problem struct {
	ProblemId uint64 `json:"problem_id" gorm:"auto_increment" form:"id"`
	Title string `json:"title" form:"title"`
	Description string `json:"description" form:"description"`
	Input string `json:"input" form:"input"`
	Output string `json:"output" form:"output"`
	SampleInput string `json:"sample_input" form:"sample_input"`
	SampleOutput string `json:"sample_output" form:"sample_output"`
	Spj string `json:"spj" form:"spj"`
	Hint string `json:"hint" form:"hint"`
	Source string `json:"source" form:"source"`
	InDate time.Time `json:"in_date" form:"in_date"`
	TimeLimit float64 `json:"time_limit" form:"time_limit"`
	MemoryLimit int64 `json:"memory_limit" form:"memory_limit"`
	Defunct string `json:"defunct" form:"defunct"`
	Accepted int `json:"accepted" form:"accepted"`
	Solved int `json:"solved" form:"solved"`
	Submit int `json:"submit" form:"submit"`
}

func (Problem) TableName() string{
	return "problem"
}
